<?php

namespace app\repositories;

class BaseRepository
{
    /**
     * 处理业务逻辑基础方法
     */

    //post请求
    protected function post($url,$head,$data)
    {

    }

    protected function sendData($data)
    {
        $ret = ['success' => 1, 'data' => $data];
        return $ret;
    }


    protected function sendErrData($data)
    {
        $ret = ['success' => 0, 'data' => $data];
        return $ret;
    }
}